package com.weijianhuawen.wjblog.admin.mode.vo.wiki;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @version: java version 8
 * @Author: weijianhuawen
 * @description:
 * @date: 2024-11-11 22:21
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UpdateWikiCatalogItemReqVo {
    /**
     * 目录 ID
     */
    @NotNull(message = "目录id不能为空！")
    private Long id;

    private Long articleId;
    @NotBlank(message = "标题不能为空！")
    private String title;

    private Integer sort;

    private Integer level;

    /**
     * 子级目录
     */
    @Valid
    private List<UpdateWikiCatalogItemReqVo> children;
}
